package com.chenglai.goods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author rxh
 */
@ApiModel(value = "t_cl_goods_cart")
@Table(name = "t_cl_goods_cart")
public class GoodsCart implements Serializable {


    /**
     * 主键
     */
    @Id
    @Column(name = "cart_id", updatable = false)
    @ApiModelProperty(value = "主键")
    private Integer cartId;

    /**
     * 商品id
     */
    @Column(name = "goods_id")
    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @Column(name = "goods_name")
    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @Column(name = "goods_url")
    @ApiModelProperty(value = "商品图片")
    private String goodsUrl;

    /**
     * 商品规格
     */
    @Column(name = "spec_name")
    @ApiModelProperty(value = "商品规格")
    private String specName;

    /**
     * 商品数量
     */
    @Column(name = "goods_amount")
    @ApiModelProperty(value = "商品数量")
    private Integer goodsAmount;

    /**
     * 商品价格
     */
    @Column(name = "goods_price")
    @ApiModelProperty(value = "商品价格")
    private Double goodsPrice;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 库存ID
     */
    @Column(name = "inventory_id")
    @ApiModelProperty(value = "库存ID")
    private Integer inventoryId;

    /**
     * 时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "时间")
    private String createTime;




    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsUrl() {
        return goodsUrl;
    }

    public void setGoodsUrl(String goodsUrl) {
        this.goodsUrl = goodsUrl;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public Integer getGoodsAmount() {
        return goodsAmount;
    }

    public void setGoodsAmount(Integer goodsAmount) {
        this.goodsAmount = goodsAmount;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getInventoryId() {
        return inventoryId;
    }

    public void setInventoryId(Integer inventoryId) {
        this.inventoryId = inventoryId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
